2000W / 48V LLC Battery-Charger  V1.00

Common APIs to all peripherals for XMC microcontroller family. More...

Collaboration diagram for COMMON:

Classes

struct  XMC_DRIVER_VERSION
 
struct  XMC_PRIOARRAY_ITEM
 
struct  XMC_PRIOARRAY
 

Macros

#define XMC_LIB_MAJOR_VERSION   (2U)
 
#define XMC_LIB_MINOR_VERSION   (1U)
 
#define XMC_LIB_PATCH_VERSION   (18U)
 
#define XMC_LIB_VERSION   ((XMC_LIB_MAJOR_VERSION << 16U) + (XMC_LIB_MINOR_VERSION << 8U) + XMC_LIB_PATCH_VERSION)
 
#define XMC_ASSERT(msg, exp)   { ; }
 
#define XMC_DEBUG(...)   { ; }
 
#define XMC_UNUSED_ARG(x)   (void)x
 
#define XMC_STRUCT_INIT(m)   memset(&m, 0, sizeof(m))
 
#define XMC_PRIOARRAY_DEF(name, size)
 
#define XMC_PRIOARRAY(name)   &prioarray_def_##name
 

Typedefs

typedef struct XMC_DRIVER_VERSION XMC_DRIVER_VERSION_t
 
typedef void * XMC_LIST_t
 
typedef struct XMC_PRIOARRAY_ITEM XMC_PRIOARRAY_ITEM_t
 
typedef struct XMC_PRIOARRAY XMC_PRIOARRAY_t
 

Functions

void XMC_AssertHandler (const char *const msg, const char *const file, uint32_t line)
 
void XMC_LIST_Init (XMC_LIST_t *list)
 
void XMC_LIST_Add (XMC_LIST_t *list, void *const item)
 
void XMC_LIST_Remove (XMC_LIST_t *list, void *const item)
 
uint32_t XMC_LIST_GetLength (XMC_LIST_t *list)
 
void * XMC_LIST_GetHead (XMC_LIST_t *list)
 
void * XMC_LIST_GetTail (XMC_LIST_t *list)
 
void XMC_LIST_Insert (XMC_LIST_t *list, void *prev_item, void *new_item)
 
void XMC_PRIOARRAY_Init (XMC_PRIOARRAY_t *prioarray)
 
void XMC_PRIOARRAY_Add (XMC_PRIOARRAY_t *prioarray, int32_t item, int32_t priority)
 
void XMC_PRIOARRAY_Remove (XMC_PRIOARRAY_t *prioarray, int32_t item)
 
__STATIC_INLINE int32_t XMC_PRIOARRAY_GetHead (XMC_PRIOARRAY_t *prioarray)
 
__STATIC_INLINE int32_t XMC_PRIOARRAY_GetTail (XMC_PRIOARRAY_t *prioarray)
 
__STATIC_INLINE int32_t XMC_PRIOARRAY_GetItemPriority (XMC_PRIOARRAY_t *prioarray, int32_t item)
 
__STATIC_INLINE int32_t XMC_PRIOARRAY_GetItemNext (XMC_PRIOARRAY_t *prioarray, int32_t item)
 
__STATIC_INLINE int32_t XMC_PRIOARRAY_GetItemPrevious (XMC_PRIOARRAY_t *prioarray, int32_t item)
 

Detailed Description

Common APIs to all peripherals for XMC microcontroller family.

Macro Definition Documentation

◆ XMC_ASSERT

#define XMC_ASSERT (   msg,
  exp 
)    { ; }

Definition at line 132 of file xmc_common.h.

Referenced by XMC_ERU_ETL_ClearStatusFlag(), XMC_ERU_ETL_DisableOutputTrigger(), XMC_ERU_ETL_EnableOutputTrigger(), XMC_ERU_ETL_GetEdgeDetection(), XMC_ERU_ETL_GetStatusFlag(), XMC_ERU_ETL_Init(), XMC_ERU_ETL_SetEdgeDetection(), XMC_ERU_ETL_SetInput(), XMC_ERU_ETL_SetSource(), XMC_ERU_ETL_SetStatusFlag(), XMC_ERU_ETL_SetStatusFlagMode(), XMC_ERU_OGU_DisablePatternDetection(), XMC_ERU_OGU_DisablePeripheralTrigger(), XMC_ERU_OGU_EnablePatternDetection(), XMC_ERU_OGU_EnablePeripheralTrigger(), XMC_ERU_OGU_GetPatternDetectionStatus(), XMC_ERU_OGU_Init(), XMC_ERU_OGU_SetServiceRequestMode(), XMC_FLASH_ErasePages(), XMC_FLASH_EraseSector(), XMC_FLASH_ReadBlocks(), XMC_FLASH_VerifyBlocks(), XMC_FLASH_WriteBlocks(), XMC_GPIO_DisableDigitalInput(), XMC_GPIO_DisablePowerSaveMode(), XMC_GPIO_EnableDigitalInput(), XMC_GPIO_EnablePowerSaveMode(), XMC_GPIO_GetInput(), XMC_GPIO_Init(), XMC_GPIO_SetHardwareControl(), XMC_GPIO_SetInputHysteresis(), XMC_GPIO_SetMode(), XMC_GPIO_SetOutputHigh(), XMC_GPIO_SetOutputLevel(), XMC_GPIO_SetOutputLow(), XMC_GPIO_ToggleOutput(), XMC_I2S_CH_Init(), XMC_I2S_CH_SetSystemWordLength(), XMC_PRIOARRAY_Add(), XMC_PRIOARRAY_GetHead(), XMC_PRIOARRAY_GetItemNext(), XMC_PRIOARRAY_GetItemPrevious(), XMC_PRIOARRAY_GetItemPriority(), XMC_PRIOARRAY_GetTail(), XMC_PRIOARRAY_Init(), XMC_PRIOARRAY_Remove(), XMC_RTC_SetAlarm(), XMC_RTC_SetPrescaler(), XMC_RTC_SetTime(), XMC_SCU_CLOCK_CalibrateOscillatorOnTemperature(), XMC_USIC_CH_ConfigExternalInputSignalToBRG(), XMC_USIC_CH_Enable(), XMC_USIC_Disable(), XMC_USIC_Enable(), XMC_VADC_GLOBAL_BackgndAddMultipleChannels(), XMC_VADC_GLOBAL_BackgndRemoveMultipleChannels(), XMC_VADC_GLOBAL_BackgroundAbortSequence(), XMC_VADC_GLOBAL_BackgroundAddChannelToSequence(), XMC_VADC_GLOBAL_BackgroundClearReqSrcEvent(), XMC_VADC_GLOBAL_BackgroundDisableContinuousMode(), XMC_VADC_GLOBAL_BackgroundDisableEvent(), XMC_VADC_GLOBAL_BackgroundDisableExternalTrigger(), XMC_VADC_GLOBAL_BackgroundEnableContinuousMode(), XMC_VADC_GLOBAL_BackgroundEnableEvent(), XMC_VADC_GLOBAL_BackgroundEnableExternalTrigger(), XMC_VADC_GLOBAL_BackgroundGetNumChannelsPending(), XMC_VADC_GLOBAL_BackgroundGetReqSrcEventStatus(), XMC_VADC_GLOBAL_BackgroundInit(), XMC_VADC_GLOBAL_BackgroundIsChannelPending(), XMC_VADC_GLOBAL_BackgroundRemoveChannelFromSequence(), XMC_VADC_GLOBAL_BackgroundSelectGating(), XMC_VADC_GLOBAL_BackgroundSelectTrigger(), XMC_VADC_GLOBAL_BackgroundSelectTriggerEdge(), XMC_VADC_GLOBAL_BackgroundSetGatingMode(), XMC_VADC_GLOBAL_BackgroundSetReqSrcEventInterruptNode(), XMC_VADC_GLOBAL_BackgroundTriggerConversion(), XMC_VADC_GLOBAL_BackgroundTriggerReqSrcEvent(), XMC_VADC_GLOBAL_ClearEvent(), XMC_VADC_GLOBAL_DisableModuleClock(), XMC_VADC_GLOBAL_DisableSleepMode(), XMC_VADC_GLOBAL_DisableStartupCalibration(), XMC_VADC_GLOBAL_EnableModuleClock(), XMC_VADC_GLOBAL_EnableSleepMode(), XMC_VADC_GLOBAL_GetCompareResult(), XMC_VADC_GLOBAL_GetDetailedResult(), XMC_VADC_GLOBAL_GetResult(), XMC_VADC_GLOBAL_Init(), XMC_VADC_GLOBAL_InputClassInit(), XMC_VADC_GLOBAL_ResultInit(), XMC_VADC_GLOBAL_SetCompareValue(), XMC_VADC_GLOBAL_SetResultEventInterruptNode(), XMC_VADC_GLOBAL_StartupCalibration(), and XMC_VADC_GLOBAL_TriggerEvent().

◆ XMC_DEBUG

#define XMC_DEBUG (   ...)    { ; }

Definition at line 139 of file xmc_common.h.

◆ XMC_LIB_MAJOR_VERSION

#define XMC_LIB_MAJOR_VERSION   (2U)

Definition at line 92 of file xmc_common.h.

◆ XMC_LIB_MINOR_VERSION

#define XMC_LIB_MINOR_VERSION   (1U)

Definition at line 93 of file xmc_common.h.

◆ XMC_LIB_PATCH_VERSION

#define XMC_LIB_PATCH_VERSION   (18U)

Definition at line 94 of file xmc_common.h.

◆ XMC_LIB_VERSION

#define XMC_LIB_VERSION   ((XMC_LIB_MAJOR_VERSION << 16U) + (XMC_LIB_MINOR_VERSION << 8U) + XMC_LIB_PATCH_VERSION)

Definition at line 96 of file xmc_common.h.

◆ XMC_PRIOARRAY

#define XMC_PRIOARRAY (   name)    &prioarray_def_##name

Definition at line 150 of file xmc_common.h.

◆ XMC_PRIOARRAY_DEF

#define XMC_PRIOARRAY_DEF (   name,
  size 
)
Value:
XMC_PRIOARRAY_ITEM_t prioarray_m_##name[size + 2]; \
XMC_PRIOARRAY_t prioarray_def_##name = {(size), (prioarray_m_##name)};

Definition at line 146 of file xmc_common.h.

◆ XMC_STRUCT_INIT

#define XMC_STRUCT_INIT (   m)    memset(&m, 0, sizeof(m))

Definition at line 144 of file xmc_common.h.

◆ XMC_UNUSED_ARG

#define XMC_UNUSED_ARG (   x)    (void)x

Definition at line 142 of file xmc_common.h.

Referenced by XMC_ERU_Disable(), and XMC_ERU_Enable().

Typedef Documentation

◆ XMC_DRIVER_VERSION_t

◆ XMC_LIST_t

typedef void* XMC_LIST_t

Definition at line 169 of file xmc_common.h.

◆ XMC_PRIOARRAY_ITEM_t

◆ XMC_PRIOARRAY_t

Function Documentation

◆ XMC_AssertHandler()

void XMC_AssertHandler ( const char *const  msg,
const char *const  file,
uint32_t  line 
)

◆ XMC_LIST_Add()

void XMC_LIST_Add ( XMC_LIST_t *  list,
void *const  item 
)

Definition at line 106 of file xmc_common.c.

Here is the call graph for this function:

◆ XMC_LIST_GetHead()

void* XMC_LIST_GetHead ( XMC_LIST_t *  list)

Definition at line 82 of file xmc_common.c.

◆ XMC_LIST_GetLength()

uint32_t XMC_LIST_GetLength ( XMC_LIST_t *  list)

◆ XMC_LIST_GetTail()

void* XMC_LIST_GetTail ( XMC_LIST_t *  list)

Definition at line 87 of file xmc_common.c.

Referenced by XMC_LIST_Add().

Here is the caller graph for this function:

◆ XMC_LIST_Init()

void XMC_LIST_Init ( XMC_LIST_t *  list)

Definition at line 77 of file xmc_common.c.

◆ XMC_LIST_Insert()

void XMC_LIST_Insert ( XMC_LIST_t *  list,
void *  prev_item,
void *  new_item 
)

Definition at line 152 of file xmc_common.c.

◆ XMC_LIST_Remove()

void XMC_LIST_Remove ( XMC_LIST_t *  list,
void *const  item 
)

Definition at line 123 of file xmc_common.c.

◆ XMC_PRIOARRAY_Add()

void XMC_PRIOARRAY_Add ( XMC_PRIOARRAY_t *  prioarray,
int32_t  item,
int32_t  priority 
)

Definition at line 182 of file xmc_common.c.

Here is the call graph for this function:

◆ XMC_PRIOARRAY_GetHead()

__STATIC_INLINE int32_t XMC_PRIOARRAY_GetHead ( XMC_PRIOARRAY_t *  prioarray)

Definition at line 256 of file xmc_common.h.

Referenced by XMC_PRIOARRAY_Add().

Here is the caller graph for this function:

◆ XMC_PRIOARRAY_GetItemNext()

__STATIC_INLINE int32_t XMC_PRIOARRAY_GetItemNext ( XMC_PRIOARRAY_t *  prioarray,
int32_t  item 
)

Definition at line 283 of file xmc_common.h.

Referenced by XMC_PRIOARRAY_Add().

Here is the caller graph for this function:

◆ XMC_PRIOARRAY_GetItemPrevious()

__STATIC_INLINE int32_t XMC_PRIOARRAY_GetItemPrevious ( XMC_PRIOARRAY_t *  prioarray,
int32_t  item 
)

Definition at line 292 of file xmc_common.h.

◆ XMC_PRIOARRAY_GetItemPriority()

__STATIC_INLINE int32_t XMC_PRIOARRAY_GetItemPriority ( XMC_PRIOARRAY_t *  prioarray,
int32_t  item 
)

Definition at line 274 of file xmc_common.h.

Referenced by XMC_PRIOARRAY_Add().

Here is the caller graph for this function:

◆ XMC_PRIOARRAY_GetTail()

__STATIC_INLINE int32_t XMC_PRIOARRAY_GetTail ( XMC_PRIOARRAY_t *  prioarray)

Definition at line 265 of file xmc_common.h.

◆ XMC_PRIOARRAY_Init()

void XMC_PRIOARRAY_Init ( XMC_PRIOARRAY_t *  prioarray)

Definition at line 166 of file xmc_common.c.

◆ XMC_PRIOARRAY_Remove()

void XMC_PRIOARRAY_Remove ( XMC_PRIOARRAY_t *  prioarray,
int32_t  item 
)

Definition at line 205 of file xmc_common.c.